package com.cloud.pole.shop.biz.goods;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Options;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.ace.cache.annotation.Cache;
import com.ace.cache.annotation.CacheClear;
import com.cloud.pole.common.biz.BaseBiz;
import com.cloud.pole.mapper.goods.ShopGoodsModelAttrValueMapper;
import com.cloud.pole.shop.model.entity.goods.ShopGoodsModelAttrValue;

/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-08 16:23
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ShopGoodsModelAttrValueBiz extends BaseBiz<ShopGoodsModelAttrValueMapper, ShopGoodsModelAttrValue> {

	public List<ShopGoodsModelAttrValue> selectByConditionList(Integer modelAttrId,Integer shopId){
		
		return mapper.selectByCondition(modelAttrId, shopId);
	}
	
	public void add(ShopGoodsModelAttrValue shopGoodsModelAttrValue) {
		mapper.addShopGoodsModelAttrVal(shopGoodsModelAttrValue);
	}
	
	public List<ShopGoodsModelAttrValue> selectByToName(List<String> attrValueNameS,Integer shopId){
		return mapper.selectName(attrValueNameS,shopId);
	}
	
	public ShopGoodsModelAttrValue selectByToAttrValueName(String attrValueName,Integer modelAttrId,Integer shopId) {
		return mapper.selectAttrValueName(attrValueName,modelAttrId,shopId);
	}
}
